import aiohttp


class NetworkUtils:
    @staticmethod
    def get_user_agents():
        """返回常用User-Agent列表"""
        return [
            'Mozilla/5.0 (Windows NT 10.0; Win64; x64)...',
            # 其他UA...
        ]

    @staticmethod
    def validate_proxy(proxy_url):
        """验证代理可用性"""
        try:
            async with aiohttp.ClientSession() as session:
                async with session.get('http://example.com', proxy=proxy_url, timeout=5):
                    return True
        except:
            return False